//
//  XMSharePlainButton.m
//  XiaoMiao
//
//  Created by 23 on 2017/11/9.
//  Copyright © 2017年 smallyou. All rights reserved.
//

#import "XMSharePlainButton.h"

@implementation XMSharePlainButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGPoint center = self.imageView.center;
    center.x = self.frame.size.width/2;
    center.y = self.imageView.frame.size.height/2;
    self.imageView.center = center;
    
    CGRect frame = [self titleLabel].frame;
    frame.origin.x = 0;
    frame.origin.y = self.imageView.frame.size.height + 2;
    frame.size.width = self.frame.size.width;
    self.titleLabel.frame = frame;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
}

@end
